package com.xiguthings.waka.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

import java.util.HashMap;
import java.util.Map;

public class CustomizedToken extends UsernamePasswordToken {
    private String loginType;
    private Map<String, Object> param = new HashMap<>();
    private String loginCode;

    public CustomizedToken(final String username, final String password,
                           String loginType, String loginCode) {
        super(username, password);
        this.loginType = loginType;
        this.loginCode = loginCode;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public Map<String, Object> getParam() {
        return param;
    }

    public void setParam(Map<String, Object> param) {
        this.param = param;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }
}
